package org.dyz.banana.platform.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.sql.Timestamp;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author ${author}
 * @since 2020-12-17
 */
@TableName("t_role")
public class TRole implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId("role_id")
    private Long roleId;

    @TableField("created_timestamp")
    private Timestamp createdTimestamp;

    @TableField("updated_timestamp")
    private Timestamp updatedTimestamp;

    /**
     * 有效标志
     */
    @TableField("defun_ind")
    private Boolean defunInd;


    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Timestamp getCreatedTimestamp() {
        return createdTimestamp;
    }

    public void setCreatedTimestamp(Timestamp createdTimestamp) {
        this.createdTimestamp = createdTimestamp;
    }

    public Timestamp getUpdatedTimestamp() {
        return updatedTimestamp;
    }

    public void setUpdatedTimestamp(Timestamp updatedTimestamp) {
        this.updatedTimestamp = updatedTimestamp;
    }

    public Boolean getDefunInd() {
        return defunInd;
    }

    public void setDefunInd(Boolean defunInd) {
        this.defunInd = defunInd;
    }

    @Override
    public String toString() {
        return "TRole{" +
        "roleId=" + roleId +
        ", createdTimestamp=" + createdTimestamp +
        ", updatedTimestamp=" + updatedTimestamp +
        ", defunInd=" + defunInd +
        "}";
    }
}
